#include "Common.hpp"
#include "Http.hpp"

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        std::cout<<"参数传递错误，正确传参：./exe port"<<std::endl;
        exit(USAGE_ERR);  
    }
    uint16_t port=std::stoi(argv[1]);

    std::unique_ptr<Http> Httpuser=std::make_unique<Http>(port);
    Httpuser->Start();
    return 0;
}